<% 
    var headContent = {
%>
  <link rel="stylesheet" href="${base}/template/common/css/tree/amazeui.tree.css"/>
<style>
 /*树结构 begin*/
.am-tree .am-tree-item.am-tree-selected .am-tree-item-name .am-tree-label,
.am-tree.am-tree-folder-select .am-tree-branch.am-tree-selected > .am-tree-branch-header .am-tree-branch-name .am-tree-label {
  background-color: #0c80ba;
  color: #fff;
}
/*树结构 end*/
/*模态窗口 begin*/
.am-modal-dialog{
	top: 30%;
	text-center: left;
	font-size: 14px;
}

/*模态窗口 end*/
 </style>
<%
};
%>
<%layout("/common/_layout.html",{head:headContent}){ %>
    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">系统管理</strong> / <small>机构信息</small></div>
    </div>

  <div  class="am-tabs am-margin">
  
          <ul class="am-tabs-nav am-nav am-nav-tabs">
          <li class="am-active"><a href="#tab1">基本信息</a></li>
  
          </ul>
	          <form class="am-form" action="${base!}/organization/update">
        <div class="am-tabs-bd">
	         <div id="tab1" class="am-tab-panel am-fade am-in am-active" >
	         
		       <div class=" am-g am-margin-top am-form-group">
                <div class="am-u-sm-12 am-u-md-2 admin-form-text">机构类型</div>
                <div class="am-u-sm-12 am-u-md-10">
                  <input  type="checkbox" data-size='xs' data-am-switch  data-off-text="机构" data-on-text="商家" disabled="disabled"
                <%if (pager.orgtype==2){%>
                    checked                                                        
                 <%}%>
                 >
                </div>
              </div>
              
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 ">
                 	 选择上层机构
                </div>
                <div class="am-u-sm-4 am-u-md-4">
                  <input type="text" class="am-input-sm"  readonly="true" value="${pager.parentname}"/>
                </div>
                <div class="am-u-sm-4 am-u-md-2">

			    </div>
    			<div class="am-hide-sm-only am-u-md-4" style="color:red;"></div>
        
              </div>
              
              
             
              <div class="am-g am-margin-top">
	              <div class="am-u-sm-2 am-u-md-2  ">
	              		机构标识
	              </div>
	              <div class="am-u-sm-10 am-u-md-4">
	                  <select id="orgSign" name="orgSign" title="请选择选项" class="{required:true}" disabled="disabled">
	                   <option value="0" 
                    <%if (pager.orgSign==0){%>
                       selected = "selected"
                    <%}%>
                      >普通机构</option>
                      
                    <option value="1" 
                    <%if (pager.orgSign==1){%>
                       selected = "selected"
                    <%}%>
                      >营业厅</option>
                      
                    <option value="2" 
                    <%if (pager.orgSign==2){%>
                       selected = "selected"
                    <%}%>
                      >移动分公司</option>
                    
                    <option value="3" 
                    <%if (pager.orgSign==3){%>
                       selected = "selected"
                    <%}%>
                      >供货商</option>
                      
                    <option value="4" 
                    <%if (pager.orgSign==4){%>
                       selected = "selected"
                    <%}%>
                      >门店</option>
                      
                    <option value="5" 
                    <%if (pager.orgSign==5){%>
                       selected = "selected"
                    <%}%>
                      >渠道商</option>
	                  </select>
	              </div>
	              <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
              </div>
              
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 ">
                 	 机构名称
                </div>
                <div class="am-u-sm-12 am-u-md-4">
                  <input type="text" class="am-input-sm"  readonly="true" placeholder="输入机构名称（2-100个字符）" value="${pager.DisplayName}"/>
                </div>
                <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
    
              </div>
              
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 ">
                 	 机构编号
                </div>
                <div class="am-u-sm-12 am-u-md-4">
                  <input type="text" class="am-input-sm"  readonly="true" placeholder="输入渠道编码（2-100个字符）" value="${pager.NumCode}"/>
                </div>
                <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
        
              </div>
              
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 ">
                 	 排序数字
                </div>
                <div class="am-u-sm-12 am-u-md-4">
                  <input type="text" class="am-input-sm"  readonly="true" value="${pager.DisplayOrder}"/>
                </div>
                <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
  
              </div>
              
              <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 ">
                 	 主要业务
                </div>
                <div class="am-u-sm-12 am-u-md-4">
                  <input type="text" class="am-input-sm"  readonly="true" value="${pager.Business}"/>
                </div>
                <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
     
              </div>
              
              <div class="am-g am-margin-top">
	              <div class="am-u-sm-2 am-u-md-2  ">
	              		状态
	              </div>
	              <div class="am-u-sm-10 am-u-md-4">
	                  <input id="switch"   type="checkbox" data-size='xs' data-am-switch  data-off-text="无效" data-on-text="有效" disabled="disabled"
                        <%if (pager.enabled==1){%>
                            checked                                                        
                         <%}%>
                         > 
	              </div>
	              <div class="am-hide-sm-only am-u-md-6" style="color:red;"></div>
              </div>
              
              <div class="am-g am-margin-top">

                <div class="am-u-sm-12 am-u-md-4">
                  <input type="hidden" class="am-input-sm" value="${pager.id}"/>
                </div>
     
              </div>
              
              <div class="am-g">
              <button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript: History.back();">返回上一级</button>
            </div>
             
	    </div>
	         
	    
        </div>
        </form> 
  </div>

	<%}%>